package com.fram.service.admin;

import com.fram.bean.admin.news.response.NewsListResponse;
import com.fram.bean.sys.PageBean;
import com.fram.common.exception.ProException;
import com.fram.entity.NewsList;
import com.github.pagehelper.PageInfo;

/** 新闻管理 **/
public interface NewsListService {
	// 后台-新增新闻
	public void add(NewsList record) throws ProException;

	// 后台-新闻列表（超级和店铺区分）
	public PageInfo<NewsListResponse> list(PageBean<NewsList> request) throws ProException;

	// 后台-根据新闻id查详情
	public NewsList details(Long id) throws ProException;

	// 后台-修改新闻内容
	public void update(NewsList record) throws ProException;
}
